package Tracker.server.model;

import org.json.JSONException;
import org.json.JSONObject;

public class Point extends JSONObject {
	public final float latitude;
	public final boolean north;
	public final float longitude;
	public final boolean west;
	boolean image;
	
	public Point(float lat, boolean n, float lon, boolean w) throws JSONException {
		this.latitude = lat;
		this.north = n;
		this.longitude = lon;
		this.west = w;
		this.image = false;
		
		this.put("latitude", lat);
		this.put("north", n);
		this.put("longitude", lon);
		this.put("west", w);
		this.put("image", false);
	}
	
	public void setImage(boolean img) throws JSONException {
		this.image = img;
		this.put("image", img);
	}
	
	public boolean getImage() {
		return this.image;
	}
}
